body {
    margin: 0px;
    min-height: 100vh;
    font-family: "Spectral", cursive, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  display: flex;
  flex-direction: column;
  align-items: center;

  background: #EFE0CD;
  
}
body::-webkit-scrollbar{
    width: 0;
}

.navbar { /* nav bar design*/
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 40px;  
    z-index: 10;
}

/* Navbar expand/compact animation */
.navbar {
  /* keep current visual but enable smooth transitions */
  transition: padding 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease, box-shadow 220ms ease;
  will-change: padding, background-color;
}

/* Expanded state when at the very top of the page */
.navbar.at-top {
  padding: 15px 30px;               /* larger height */
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navbar:not(.at-top) {
  padding: 8px 34px;                /* compact */
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navbar ul{
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}

.navbar a{/* nav text design*/
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 12px 16px;           /* spacing for text */
    display: block;
    font-size: 15px;              /* <-- make this bigger/smaller as needed */
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: font-size 160ms ease, padding 160ms ease;
}
.navbar a:hover{
    text-decoration: underline;
}

/* Text when it gets big*/
.navbar.at-top a {
  font-size: 20px;         
}

.navbar li{
    float: left;
}

/* ensure the logo link doesn't change layout or show text-decoration */
.logo-link {
  display: inline-block;
  line-height: 0;        /* avoid extra inline gap */
  text-decoration: none;
}

.logo {
  height: 350px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

main {
 display: grid;
  grid-template-columns: 1fr 1fr; /* image left, text right */
  align-items: center;
  justify-items: center;
  gap: 60px;
  padding-top: 120px;      /* keeps it below navbar */
}

main img {
  justify-self: end;
  width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin-right: 60px;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

main p {
  font-size: 1.1rem;
  margin: 0.5em 0;
}

main .info {
  display: flex;
  flex-direction: column;
  justify-self: start;
  align-items: flex-start; /* aligns text to the left side of text block */
  margin-top: -300px;
}

.quantity-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  background-color: #f1f1f1;
  border: 1px solid #aaa;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.quantity-controls button:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

#quantity {
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

.add-to-cart {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.add-to-cart:hover {
  background-color: #333;
  transform: scale(1.05);
}

.add-to-cart {
  background-color: black;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 1rem;
  font-family: "Spectral", serif;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
}

.add-to-cart:hover {
  background-color: #333;
  transform: scale(1.05);
}

.add-to-cart:active {
  transform: scale(0.98);
}

/* ---------- SEARCH ICON ---------- */
.search-container {
  position: absolute;
  right: 230px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customize-container {
  position: absolute;
  right: 270px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.searchlogo {
  height: 30px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  transition: transform 0.2s ease;
}

.searchlogo:hover {
  transform: scale(1.1);
}

.customize-container .searchlogo {
  height: 42px;
}

.cart-container {
  position: absolute;
  right: 80px;       /* aligns at far right of navbar */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cartlogo {
  height: 32px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  transition: transform 0.2s ease;
}

.cartlogo:hover {
  transform: scale(1.1);
}

/* red notification badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* search modal styling */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-modal {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: all;
}

.search-input {
  width: 400px;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  outline: none;
  font-family: "Spectral", serif;
}

.search-input:focus {
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ---------------- MODAL POPUP ---------------- */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-container.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.modal-container.show .modal {
  opacity: 1;
}

/* Grows when hovered */
.modal-container.show .modal:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1100;
}

.modal img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.modal:hover img {
  transform: scale(1.05);
}

/* ==================== TABLET & PHONE RESPONSIVE ==================== */

/* ---------- TABLET (portrait and small landscape) ---------- */
@media (max-width: 1024px) {
  /* keep navbar layout but reduce padding */
  .navbar {
    padding: 10px 20px;
  }
  .navbar.at-top {
    padding: 18px 20px;
  }
  .navbar:not(.at-top) {
    padding: 6px 20px;
  }

  /* reduce logo size slightly */
  .logo {
    height: 100px;
  }
  .navbar:not(.at-top) .logo {
    height: 40px;
  }

  /* main content: stack vertically on tablet */
  main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 100px 40px 40px 40px;
  }

  main img {
    justify-self: center;
    width: 60%;
    margin: 0;
  }

  main .info {
    justify-self: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }
}

/* ---------- PHONE (portrait) ---------- */
@media (max-width: 768px) {
  /* hide the logo on phone */
  .logo,
  .logo-link {
    display: none !important;
  }

  /* navbar: space-between so nav links stay left, cart stays right */
  .navbar {
    justify-content: space-between;
    padding: 10px 16px;
    position: relative;
    overflow: visible;
  }
  .navbar.at-top {
    padding: 16px 16px;
  }
  .navbar:not(.at-top) {
    padding: 8px 16px;
  }

  /* keep nav ul on the left */
  .navbar ul {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  /* nav text: reduce font size for phone */
  .navbar a {
    font-size: 15px;
    padding: 8px 10px;
  }
  .navbar.at-top a {
    font-size: 16px;
  }

  /* cart positioned at right with safe margin */
  .cart-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .cartlogo {
    height: 28px;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  /* modal container: centered, no horizontal scroll */
  .modal-container {
    flex-direction: row;
    gap: 8px;
    padding: 16px;
    max-width: none;
    width: auto;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: center;
    align-items: center;
  }

  /* smaller modals for phone */
  .modal {
    width: 90px;
    max-width: 90px;
    padding: 8px;
    flex-shrink: 0;
  }

  .modal img {
    width: 100%;
    height: auto;
  }

  /* main content: stack image above, info below */
  main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 80px 20px 40px 20px;
  }

  main img {
    justify-self: center;
    width: 70%;
    max-width: 300px;
    margin: 0;
  }

  main .info {
    justify-self: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
    width: 100%;
    max-width: 400px;
  }

  main h1 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 1rem;
  }

  /* quantity and button: center them */
  .quantity-container {
    justify-content: center;
  }

  .add-to-cart {
    width: 100%;
    max-width: 250px;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 480px) {
  .navbar a {
    font-size: 13px;
    padding: 6px 8px;
  }
  .navbar.at-top a {
    font-size: 15px;
  }

  main img {
    width: 80%;
    max-width: 250px;
  }

  main h1 {
    font-size: 1.3rem;
  }

  main p {
    font-size: 0.95rem;
  }

  .add-to-cart {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.site-footer {
  margin-top: auto;
}

body > main {
  margin-bottom: 120px;
}


/* ---------- USER ICON ---------- */
.userlogo {
  height: 34px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.userlogo:hover {
  transform: scale(1.1);
}

/* ---------- USER MODAL ---------- */
.user-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.user-modal {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2101;
  opacity: 0;
  pointer-events: none;
  width: 480px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 20px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.user-modal.active {
  opacity: 1;
  pointer-events: all;
}

.user-modal label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.user-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-family: "Spectral", serif;
}

.user-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
}

.user-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-family: "Spectral", serif;
  font-weight: 600;
  cursor: pointer;
}

.signup-btn {
  background: #111;
  color: #fff;
}

.login-btn {
  background: #e6e6e6;
  color: #111;
}


.signup-modal {
  top: 95px;
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.signup-modal.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.signup-modal h3 {
  margin: 0 0 12px;
  font-size: 24px;
  text-align: center;
}

.signup-modal .user-input {
  border: 1px solid #b9c0cf;
  background: #f7f8fc;
  border-radius: 10px;
  padding: 12px 14px;
}

.signup-modal .user-input:focus {
  border-color: #7f8aa3;
  box-shadow: 0 0 0 3px rgba(127, 138, 163, 0.18);
  outline: none;
}

.signup-submit-btn {
  background: #111;
  color: #fff;
}

.signup-modal .login-btn {
  background: #eceff5;
  color: #111;
}



/* ---------- PAGE TRANSITION OVERLAY ---------- */
html,
body {
  background: #EFE0CD;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, #1f1f1f 0%, #565656 50%, #1f1f1f 100%);
  transform: translateY(0%);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 9999;
}

body.page-entered::before {
  transform: translateY(-100%);
}

body.no-page-transition::before {
  transition: none;
}

body.page-exit::before {
  transform: translateY(0%);
}

/* ---------- EMAIL VALIDATION ---------- */
.email-error {
  display: block;
  min-height: 16px;
  margin: -6px 0 10px;
  font-size: 12px;
  color: #cc1f1f;
}

.signup-message {
  min-height: 16px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}


.login-message {
  min-height: 16px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}


.shirt-actions {
  display: block;
  margin-top: 10px;
}

.add-to-wishlist {
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-family: "Spectral", serif;
  font-weight: 600;
  cursor: pointer;
}

.reviews-section {
  grid-column: 1 / -1;
  width: calc(100% - 40px);
  max-width: none;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.reviews-section h2 {
  margin: 0 0 10px;
}

.review-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 10px;
  font-family: "Spectral", serif;
}

.review-form textarea {
  min-height: 90px;
  resize: vertical;
}

.submit-review-btn {
  justify-self: start;
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.review-item {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 8px;
  background: #fff;
}

.review-item strong {
  display: block;
}


/* ---------- WEBSITE SETTINGS (GLOBAL) ---------- */
body.transitions-off::before {
  display: none;
}

body.site-dark {
  background: #131313;
  color: #ededed;
}

body.site-dark .navbar {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.site-dark .navbar.at-top {
  background: rgba(255, 255, 255, 0.2);
}

body.site-dark .navbar:not(.at-top) {
  background: rgba(255, 255, 255, 0.16);
}

body.site-dark .navbar a {
  color: #0e0e0e;
}

body.site-dark .site-footer {
  background: rgba(255, 255, 255, 0.2);
  color: #111;
}


/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 11;
}

.mobile-menu-btn img {
  height: 28px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 100%;
}

.mobile-menu li {
  float: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
  display: block;
  padding: 16px 22px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}
/* MOBILE SITE-WIDE PATCH */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  background: #EFE0CD;
  }

  .header {
    overflow: visible !important;
  }

  .header,
  .navbar,
  main,
  .site-footer,
  footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .navbar {
    padding: 8px 10px !important;
    min-height: 72px;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    overflow: visible;
  }

  .navbar ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 12;
  }

  .mobile-menu-btn img {
    height: 26px;
    width: auto;
  }

  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    max-height: calc(100dvh - 72px);
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
  }

  .mobile-menu ul {
    display: block !important;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .logo {
    display: block !important;
    height: 236px !important;
    max-width: 480px;
    object-fit: contain;
    position: absolute !important;
    top: 50% !important;
    left: 42% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    z-index: 11;
  }

  .search-container,
  .question-container,
  .user-container,
  .cart-container {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .search-container { right: 108px !important; }
  .customize-container { right: 132px !important; }
  .customize-container .searchlogo { height: 24px !important; }
  .question-container { right: 78px !important; }
  .user-container { right: 50px !important; }
  .cart-container { right: 28px !important; }

  .user-container .userlogo {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .cart-badge {
    height: 16px !important;
    width: 16px !important;
    font-size: 11px !important;
  }

  .site-footer,
  footer {
    padding: 10px 12px !important;
  }

  .site-footer > div,
  footer > div {
    white-space: normal !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
  }

  .site-footer span,
  footer span {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    padding-right: 108px;
  }

  .navbar a,
  .navbar.at-top a {
    font-size: 11px !important;
    padding: 5px 6px !important;
  }

  .logo {
    height: 196px !important;
    max-width: 400px;
    position: absolute !important;
    top: 50% !important;
    left: 40% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    z-index: 11;
  }

  .search-container { right: 108px !important; }
  .customize-container { right: 132px !important; }
  .customize-container .searchlogo { height: 24px !important; }
  .question-container { right: 78px !important; }
  .user-container { right: 50px !important; }
  .cart-container { right: 28px !important; }

  .searchlogo,
  .questionlogo,
  .userlogo,
  .cartlogo {
    height: 22px !important;
  }

  .site-footer span,
  footer span {
    font-size: 11px !important;
  }
}


